/**
 * 抢购相关接口 
 */
var request = require('./request.js');
module.exports = {
  /**
   * 查询抢购活动列表
   */
  query: function (postData) {
    return request.get('/newretail/api/mall/grabActivity/query', postData)
  },
  /**
   * 检查是否具有购买商品的资格
   */
  checkQualification: function (postData) {
    return request.get('/newretail/api/mall/grabActivity/checkQualification', postData)
  },
  /**
   * 查询指定活动，指定商品，指定门店的抢购活动信息
   * @param activityId 活动Id
   * @param productId 商品Id
   * @param storeId 门店Id
   */
  getActivityStoreProduct: function (activityId, productId, storeId) {
    var params = {
      activityId: activityId,
      productId: productId,
      storeId: storeId
    }
    return request.get('/newretail/api/mall/grabActivity/getActivityStoreProduct', params)
  },
}